package com.haoze.nurseapp.model;

import com.haoze.common.model.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Table(name = "idr.ORDER_OPERATION_LOG")
public class OrderOperationLogEntity extends BaseEntity implements Serializable {
    @Column(name = "LOG_ID")
    private String logId;//N	VARCHAR2(32)	Y
    @Column(name = "OUTPAT_NUM")
    private String outpatNum;//	N	VARCHAR2(100)	Y			门（急）诊号
    @Column(name = "INPAT_NUM")
    private String inpatNum;//N	VARCHAR2(100)	Y			住院号
    @Column(name = "REQ_NUM")
    private String reqNum;//N	VARCHAR2(100)	Y			电子申请单编号
    @Column(name = "ORDER_ID")
    private String orderId;//N	VARCHAR2(32)	Y			医嘱id
    @Column(name = "OPERATION_DATE")
    private Date operationDate;//	N	DATE	Y			操作时间
    @Column(name = "OPERATION_TYPE")
    private Integer operationType;//N	NUMBER(2)	Y			操作类型：1-保存，2-取消，3-作废，4-停止，5-取消停止，6-复核，7-停止复核
    @Column(name = "OPERATION_PERSON_ID")
    private String operationPersonId;//	N	VARCHAR2(32)	Y			操作人
    @Column(name = "STOP_DATE")
    private Date stopDate;
    @Column(name = "RELEASE_DATE")
    private Date releaseDate;

    public OrderOperationLogEntity(String logId, String outpatNum, String inpatNum, String reqNum, String orderId, Date operationDate, Integer operationType, String operationPersonId, Date stopDate, Date releaseDate) {
        this.logId = logId;
        this.outpatNum = outpatNum;
        this.inpatNum = inpatNum;
        this.reqNum = reqNum;
        this.orderId = orderId;
        this.operationDate = operationDate;
        this.operationType = operationType;
        this.operationPersonId = operationPersonId;
        this.stopDate = stopDate;
        this.releaseDate = releaseDate;
    }

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getOutpatNum() {
        return outpatNum;
    }

    public void setOutpatNum(String outpatNum) {
        this.outpatNum = outpatNum;
    }

    public String getInpatNum() {
        return inpatNum;
    }

    public void setInpatNum(String inpatNum) {
        this.inpatNum = inpatNum;
    }

    public String getReqNum() {
        return reqNum;
    }

    public void setReqNum(String reqNum) {
        this.reqNum = reqNum;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Date getOperationDate() {
        return operationDate;
    }

    public void setOperationDate(Date operationDate) {
        this.operationDate = operationDate;
    }

    public Integer getOperationType() {
        return operationType;
    }

    public void setOperationType(Integer operationType) {
        this.operationType = operationType;
    }

    public String getOperationPersonId() {
        return operationPersonId;
    }

    public void setOperationPersonId(String operationPersonId) {
        this.operationPersonId = operationPersonId;
    }

    public Date getStopDate() {
        return stopDate;
    }

    public void setStopDate(Date stopDate) {
        this.stopDate = stopDate;
    }

    public Date getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(Date releaseDate) {
        this.releaseDate = releaseDate;
    }
}
